<?php

require_once("functions.php");

if(isset($_GET['id'])) {
	$sql="DELETE FROM games WHERE id={$_GET['id']}";
	$db=connectDB();
	$db->query($sql);
	update($db,$_GET['bowler']);
} 
	if(isset($_GET['bowler'])) {
		header("Location: showBowler.php?id={$_GET['bowler']}");
	} else {
		header("Location: index.php");
	}
?>
